<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
   <h1>文件上传</h1>

   <form method="post" enctype="multipart/form-data" action="/fileupload">
       <p>
           选择文件:  <input type="file" name="attach" >
       </p>

       <input type="submit" value="上传文件">
   </form>

</body>
</html>